<?php
namespace app\sw\model;

use think\Model;

class SheetDataModel extends Model{

    protected $name = 'sw_sheet_data';
    protected $pk = 'id';



    public function department(){
        return $this->hasOne(DepartmentModel::class, 'id', 'department_id');
    }

}